package main

import (
	"intelligentgateway/src/gather"
	"intelligentgateway/src/tests"
	"intelligentgateway/src/transport"
	"time"
)

func main() {
	//连接云服务
	go transport.StartTransportMsg()
	time.Sleep(10 * time.Second)

	//开启数据采集
	gather.StartModbus2ProtobuffCollect()
	for {

	}

	// timer := time.NewTicker(2 * time.Second)
	// for range timer.C {

	// 	//获取A-BMS的数据
	// 	println("aaaaaaa")

	// }

	//TestDB()
}
func TestDB() {
	tests.CreateTableTest()
}

func TestServer() {
	tests.GetPointsBySnTest("23")

	//tests.GetModbusTcpConfigTest()
	//tests.GetSerialPortConfigTest()
}
func TestProto() {
	tests.Decode()
}
